#include "Phaser.h"
#include "lang/StringFormat.hpp"
using namespace yzrilyzr_lang;
namespace yzrilyzr_dsp{
	Phaser::Phaser(){
		registerParamDSP("Osc", &osc);
		registerParamTimeMs("Depth", &depthMs);
		registerParamNormal01("WetRatio", &wetRatio);
		registerParamNormal11("Feedback", &feedback);
		static uint32_t min=1, max=12;
		registerParam("Stages", yzrilyzr_util::ParamType::UInt, &stages, &min, &max);
	}
	String Phaser::toString()const{
		return StringFormat::object2string("Phaser", osc, depthMs, wetRatio, feedback, stages);
	}
}